<template>
    <div>


        <el-table :data="pageBean.beanList" border style="width: 100%">

            <el-table-column prop="aid" label="编号" width="100">
            </el-table-column>
            <el-table-column prop="aname" label="标题" width="100">
            </el-table-column>

            <el-table-column prop="classfiy.ssname" label="分类">
            </el-table-column>


            <el-table-column prop="cell.cname" label="小区">
            </el-table-column>


            <el-table-column prop="starttime" label="发布时间">
            </el-table-column>


            <el-table-column prop="status" label="状态">
            </el-table-column>

            <el-table-column prop="content" label="内容">
            </el-table-column>



            <el-table-column prop="publisher" label="发布人">
            </el-table-column>
            
            <el-table-column prop="istop" label="是否置顶">
            </el-table-column>

            <!-- 操作 -->
            <el-table-column label="操作" width="150">
                <template slot-scope="scope">
                    <el-button size="mini" @click="handleEdit(scope.$index, scope.row)">修改</el-button>
                    <el-button type="danger" plain size="small" @click="del(scope.row.sid)">删除</el-button>
                </template>
            </el-table-column>

        </el-table>

        <!-- 分页 -->
        <div class="block">
            <span class="demonstration"></span>
            <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
                :current-page="pageIndex" :page-sizes="[1, 2, 3 ]" :page-size="pageSize"
                layout="total, sizes, prev, pager, next, jumper" :total="pageBean.totalRecord">
            </el-pagination>
        </div>



    </div>
</template>
<script>
    export default {
        data() {
            return {
                pageBean: {},
                pageIndex: 1,
                pageSize: 3,
                classfiy:[],
            }
        },
        mounted() {
            this.getALLAdvertised();
           // this.getALLDepartment();
        },
        methods: {
            getALLAdvertised(page){

            },
        }
    }

</script>
<style scoped>

</style>